package abq2.jic.jic.plugin.operate.fastShowAI;

import kd.bos.form.events.BeforeDoOperationEventArgs;
import kd.bos.form.operate.FormOperate;
import kd.bos.report.plugin.AbstractReportFormPlugin;
import kd.bos.servicehelper.DispatchServiceHelper;
import kd.sdk.plugin.Plugin;

import java.util.EventObject;
import java.util.HashMap;

/**
 * 单据界面插件
 */
public class ShowAIStuScore extends AbstractReportFormPlugin implements Plugin {
    @Override
    public void beforeDoOperation(BeforeDoOperationEventArgs e) {
        super.beforeDoOperation(e);
        String operateKey = ((FormOperate) e.getSource()).getOperateKey();
        if (operateKey.equals("recomand")){
            String pageId = this.getView().getMainView().getPageId();
            Object pkValue = Long.parseLong("1953071178180473856");
            DispatchServiceHelper.invokeBizService("ai", "gai", "GaiService","selectProcessInSideBar",pkValue,pageId,"此技能用于学生成绩查询及学习资源推荐");
        } else if (operateKey.equals("scoreanalysis")) {
            String pageId = this.getView().getMainView().getPageId();
            Object pkValue = Long.parseLong("1953845065705076736");
            DispatchServiceHelper.invokeBizService("ai", "gai", "GaiService","selectProcessInSideBar",pkValue,pageId,"此技能用于学生成绩分析");
        }
    }
}

